package com.example.webdome.util;

import io.jsonwebtoken.Claims;
import org.springframework.stereotype.Component;

@Component
public class decryptToken {
    public String decrypt(String token){
        Claims claims = JwtUtil.parseJWT(token);
        String pe = JwtUtil.getEmail(claims);
        return pe;
    }
}
